<?php /* Smarty version Smarty-3.1.18, created on 2015-09-28 14:37:50
         compiled from "E:\www\gfour\ws\Admin\View\Chat\visitor.html" */ ?>
<?php /*%%SmartyHeaderCode:146815608e03ececb46-17822537%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '76ab9706845a192fe62f57bf13876e57ae1f2778' => 
    array (
      0 => 'E:\\www\\gfour\\ws\\Admin\\View\\Chat\\visitor.html',
      1 => 1442596724,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '146815608e03ececb46-17822537',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    '_C' => 0,
    'total' => 0,
    'sql_list' => 0,
    'sql' => 0,
    'list_page' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_5608e03edb0073_78488632',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5608e03edb0073_78488632')) {function content_5608e03edb0073_78488632($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'E:\\www\\gfour\\ws\\Qiaqia\\Vendor\\Smarty\\plugins\\modifier.date_format.php';
?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/hy.admin.css"/>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/jquery.confirm.css"/>
	</head>
	<body>
		<div class="am-g">
			 <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

			 <form id="formsearch" >
			<div class="am-u-md-6 am-cf">
				<div class="am-fl" style="padding:10px;">
		          <div class="am-input-group am-input-group-sm">
		          		<span class="am-input-group-label" style="background-color: #fff;border: 0px;">时间</span>
		          		<input value="<?php echo $_smarty_tpl->tpl_vars['total']->value['startTime'];?>
" style="width:180px;" type="text" id="startTime" name="startTime" class="field am-form-field" placeholder="时：分：秒">
		          </div>
		        </div>
				<div class="am-fl" style="padding:10px;">
		          <div class="am-input-group am-input-group-sm">
		          		<span class="am-input-group-label" style="background-color: #fff;border: 0px;">至&nbsp;&nbsp;&nbsp;</span>
		          		<input value="<?php echo $_smarty_tpl->tpl_vars['total']->value['endTime'];?>
" style="width:180px;" type="text" id="endTime" name="endTime" class="field am-form-field " placeholder="时：分：秒">
		          </div>
				  <div class="am-input-group am-input-group-sm">
		                <span class="am-input-group-btn" style=" height: 45px;padding-left: 50px;">
		                  <button class="am-btn am-btn-default bin-select-searchbtn" type="button">搜索</button>
		                </span>
		          </div>
		        </div>
		</form>
	  	<div class="am-btn-toolbar am-fl">
            <div class="am-btn-group am-btn-group-xs">
            	<a  href="javascript:void(0);" onclick="balance()" id="balance_html"  class="am-btn am-btn-default hy-js-href"><span class="am-icon-plus"></span> 结算</a>
            </div>
		</div>
		</div>
		<div class="am-u-md-6 am-cf">
        <div class="am-fl am-cf">
          <div class="am-btn-toolbar am-fl">
			<div class="am-btn-group am-btn-group-xs" style="line-height:31px;margin-left:60px;" >
				每日的<strong style="font-size:18px;color:#0e90d2"><?php echo $_smarty_tpl->tpl_vars['total']->value['startTime'];?>
 </strong>到<strong style="font-size:18px;color:#0e90d2"><?php echo $_smarty_tpl->tpl_vars['total']->value['endTime'];?>
 </strong>
				<br>
				总pv总数<strong style="font-size:18px;color:#0e90d2"> <?php echo (($tmp = @$_smarty_tpl->tpl_vars['total']->value['pvcount'])===null||$tmp==='' ? '0' : $tmp);?>
 </strong>
				<br>
				总uv总数<strong style="font-size:18px;color:#0e90d2"> <?php echo (($tmp = @$_smarty_tpl->tpl_vars['total']->value['uvcount'])===null||$tmp==='' ? '0' : $tmp);?>
 </strong>
			</div>
				<br>
          </div>
		   
        </div>
      </div>
	  
      <div class="am-g">
      <div class="am-u-sm-12">
        <div class="am-form">
          <table class="am-table am-table-striped am-table-hover table-main">
            <thead>
              <tr>
              	<th width="10%" class="table-check"><input class="hy-js-selectall" type="checkbox" />全选/全不选</th>
				<th width="40%" class="table-type">时间段</th>
				<th width="25%" class="table-type">pv</th>
				<th width="25%" class="table-type">uv</th>
              </tr>
          </thead>
          <tbody>
          	   <!--<?php  $_smarty_tpl->tpl_vars['sql'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['sql']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['sql_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['sql']->key => $_smarty_tpl->tpl_vars['sql']->value) {
$_smarty_tpl->tpl_vars['sql']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['sql']->key;
?>-->
            <tr>
              <td><input class="hy-js-id" name="ids" type="checkbox" data-temp-status="<?php echo $_smarty_tpl->tpl_vars['sql']->value['status'];?>
"  value="<?php echo $_smarty_tpl->tpl_vars['sql']->value['id'];?>
"/></td>
              <td><?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['sql']->value['time'],'Y-m-d');?>
</td>
              <td><?php echo (($tmp = @$_smarty_tpl->tpl_vars['sql']->value['pvnumber'])===null||$tmp==='' ? "0" : $tmp);?>
</td>
			  <td><?php echo (($tmp = @$_smarty_tpl->tpl_vars['sql']->value['uvnumber'])===null||$tmp==='' ? "0" : $tmp);?>
</td>
            </tr>
                  <!--<?php } ?>-->  
          </tbody>
        </table>
          <div class="am-cf">

  <div class="am-fr">
  <?php echo $_smarty_tpl->tpl_vars['list_page']->value;?>

  </div>
</div>
          <hr />
      
        </div>
      </div>

    </div>
    </div>
   <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

   <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/Map.js"></script>
   <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/bin.select.js"></script>
   <script src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/jquery.confirm.js"></script>
   <script type="text/javascript" src="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
js/laydate/laydate.js"></script>
   <script type="text/javascript">
	
	$('.bin-select-searchbtn').click(function(){
		var url = window.location.href;
           url = url.substring(0,url.indexOf("?"));
		   url+="?g=admin&m=chat&a=visitor";
		var json = uriJson(bulidFilterParams($("#formsearch")));
		if(json!=""&&json!=null&&json!=undefined){
			window.location.href=url+"&"+json;
		}
	});
	function loadPage(where){
		var url = window.location.href;
           url = url.substring(0,url.indexOf("?"));
		   url+="?g=admin&m=chat&a=visitor";
		var json = uriJson(bulidFilterParams($("#formsearch")));
		if(json!=""&&json!=null&&json!=undefined){
			window.location.href=url+"&"+json+where;
		}else{
			window.location.href=url+where;
		}
	}
	
	function balance(){
		$("#balance_html").html("<span class='am-icon-plus'></span> 结算中...");
		var url ="/ws/index.php?g=admin&m=chat&a=balance";
		$.post(url,"",function(res){
			if(res.error==0){
				window.location.href="index.php?g=admin&m=chat&a=visitor";
				//window.history.go(0);
			}else{
				alert(res.content);
			}
			$("#balance_html").html("<span class='am-icon-plus'></span>  结算");
		},'json')
	}
	</script>
	</body>
</html>
<?php }} ?>
